package Map;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.codehaus.jettison.json.JSONArray;
import org.codehaus.jettison.json.JSONException;
import org.codehaus.jettison.json.JSONObject;

import javax.naming.Context;

public class Mapper {
//    public static void main(String[] args) {
//        try {
//            JSONObject contentJson = new JSONObject(jobData);
//            String contentData = contentJson.getString("content");
//            JSONObject positionResultJson = new JSONObject(contentData);
//            String positionResultData =
//                    positionResultJson.getString("positionResult");
//            JSONObject resultJson = new JSONObject(positionResultData);
//            JSONArray resultData = resultJson.getJSONArray("result");
//            Text jobResultData = Jop.CleanJob.resultToString(resultData);
//            Context.write(new Text(jobResultData), NullWritable.get());
//        } catch (JSONException e) {
//            e.printStackTrace();
//        }
//    }
}
